<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>My JSP 'list.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

		<script type="text/javascript">
	function del()
	{
		if(confirm("你真的想删除该记录么？"))
		{
			return true;
		}
		return false;
	}
	</script>

	</head>

	<body>
		<h1>
			<font color="red"><center>
					Users List
				</center>
			</font>
		</h1>
		<s:debug></s:debug>
		<table border="1" width="80%" align="center">

			<tr>
				<td>
					序号
				</td>

				<td>
					用户名
				</td>

				<td>
					密码
				</td>

				<td>
					工号
				</td>

				<td>
					姓名
				</td>

				<td>
					删除
				</td>

				<td>
					更新
				</td>

			</tr>

			<s:iterator value="#request.list" id="us">
				<tr>
					<td>
						<s:property value="#us.id" />
					</td>

					<td>
						<s:property value="#us.user" />
					</td>

					<td>
						<s:property value="#us.password" />
					</td>

					<td>
						<s:property value="#us.staff_no" />
					</td>

					<td>
						<s:property value="#us.chinese_name" />
					</td>

					<td>
						<s:a href="deleteUser.action?user.id=%{#us.id}"
							onclick="return del();">delete</s:a>
					</td>

					<td>
						<s:a href="updatePUser.action?user.id=%{#us.id}">update</s:a>
					</td>



				</tr>
			</s:iterator>


		</table>


	</body>
</html>
